package com.east.sng.service;

import com.east.sng.entity.param.RoleParam;
import com.east.sng.entity.result.RoleFind;
import com.east.sng.entity.result.RoleInfo;

import java.util.List;
import java.util.Map;

/**
 * @author east
 * @date: 2021/1/5
 * @Description:
 **/
public interface RoleService {

	List<RoleInfo> findRoles(Integer flag);
	List<Map<String, String>> findRoleColumns();
	RoleFind findRole(Integer roleId);

	void addRole(RoleParam role);
	void editRole(RoleParam role);

	boolean removeRole(Integer roleId);
	boolean recoverRole(Integer roleId);
	boolean batchRemoveRoles(List<Integer> roleIds);
	boolean batchRecoverRoles(List<Integer> roleIds);

	boolean assignRoleToMenu(Integer roleId,List<Integer> menuIds);

	String findRoleCode(Integer roleId);
	List<String> findMenuCodes(Integer roleId);

}
